
<!%--
    jsp注释，不能在页面的源码中看到
    contentType:告诉浏览器，响应的数据可以解析为html页面
    pageEncoding:设置页面编码方式为UTF-8，解决java代码中文乱码的问题
--%>
<%@page contentType="text/html; "  pageEncoding="UTF-8" %>
<html>
<head>
    <title>index</title>
    <!--告诉浏览器编码方式为UTF-8-->
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="static/bootstrap/css/bootstrap.css" />
</head>

<body>
    <!--html注释-->
    <h2>JSP内置隐式对象</h2>
    <table class="table table-bordered table-striped table-hover">
        <tr>
            <td>request</td>
            <td><%=request%>&nbsp;&nbsp;&nbsp;&nbsp;<%=request instanceof javax.servlet.http.HttpServletRequest%></td>
        </tr>
        <tr>
            <td>response</td>
            <td><%=response%>&nbsp;&nbsp;&nbsp;&nbsp;<%=response instanceof HttpServletResponse%></td>
        </tr>
        <tr>
            <td>out</td>
            <td><%=out%></td>
        </tr>
        <tr>
            <td>session</td>
            <td><%=session%></td>
        </tr>
        <tr>
            <td>application</td>
            <td><%=application%></td>
        </tr>
        <tr>
            <td>config</td>
            <td><%=config%></td>
        </tr>
        <tr>
            <td>pageContext</td>
            <td><%=pageContext%></td>
        </tr>
        <tr>
            <td>page</td>
            <td><%=page%></td>
        </tr>

    </table>
    <%
        //获取当前线程的名称
        String name = Thread.currentThread().getName();
    %>
    当前线程名称：<%=name%>
</body>
</html>
